﻿
namespace Microsoft.Services.Clab.UI.Mvvmc
{
    public class ViewModelMetadata
    {
        protected ViewModelBase viewModel { get; private set; }

        internal ViewModelMetadata(ViewModelBase viewModel)
        {
            this.viewModel = viewModel;
        }

        public void DefineProperty(ViewModelProperty property)
        {
            property.ParentViewModel = this.viewModel;
            this.viewModel.PropertyCollection.Add(property);
        }
    }
}
